import {
  IsString,
  IsEnum,
  IsOptional,
  IsNotEmpty,
  MaxLength,
} from 'class-validator';
import type { FrequencyRule } from '../../../entities/restaurant.entity';

export class CreateRestaurantDto {
  @IsString()
  @IsNotEmpty()
  @MaxLength(255)
  name: string;

  @IsString()
  @IsNotEmpty()
  @MaxLength(100)
  category: string;

  @IsEnum(['daily', 'weekly', 'monthly'])
  frequency_rule: FrequencyRule;

  @IsOptional()
  @IsString()
  notes?: string;
}
